<?php

return [
    'index' => [
        'name' => '首页',
        'icon' => 'iconshouye',
        'index' => 'index/index',
    ],
    'goods' => [
        'name' => '商品管理',
        'icon' => 'iconshangpinguanli',
        'index' => 'goods/opt',
        'submenu' => [
            [
                'name' => '商品列表',
                'index' => 'goods/opt',
                'uris' => [
					'goods/opt',
					'goods/copys',
                    'goods/index',
                    'goods/add',
                    'goods/edit',
					'goods/delete'
                ],
            ],
            [
                'name' => '商品分类',
                'index' => 'goods.category/opt',
                'uris' => [
					'goods.category/opt',
                    'goods.category/index',
                    'goods.category/add',
                    'goods.category/edit',
					'goods.category/delete'
                ],
            ]
        ],
    ],
    'order' => [
        'name' => '订单管理',
        'icon' => 'icondingdanguanli',
        'index' => 'order/all_list',
        'submenu' => [
            [
                'name' => '全部订单',
                'index' => 'order/all_list',
				'uris' => [
					'order/all_list'
				],
            ],
			[
                'name' => '类型分类',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '堂食订单',
                        'index' => 'order/tang',
						'uris' => [
							'order/tang'
						],
                    ],
					[
                        'name' => '自取订单',
                        'index' => 'order/bao',
						'uris' => [
							'order/bao'
						],
                    ],
					[
                        'name' => '外卖订单',
                        'index' => 'order/wai',
						'uris' => [
							'order/wai'
						],
                    ],
                ]
            ],
			[
                'name' => '状态分类',
                'active' => false,
                'submenu' => [
                    [
						'name' => '待上餐',
						'index' => 'order/delivery_list',
					],
					[
						'name' => '待完成',
						'index' => 'order/receipt_list',
					],
					[
						'name' => '待付款',
						'index' => 'order/pay_list',
					],
					[
						'name' => '已完成',
						'index' => 'order/complete_list',

					],
					[
						'name' => '已取消',
						'index' => 'order/cancel_list',
					],
                ]
            ],
			[
                'name' => '预约订单',
                'active' => false,
                'submenu' => [
                    [
						'name' => '排号等座',
						'index' => 'order.pact/sorts',
						'uris' => [
							'order.pact/sorts'
						],
					],
					[
						'name' => '预约订桌',
						'index' => 'order.pact/table',
						'uris' => [
							'order.pact/table'
						],
					],
                ]
            ],
        ]
    ],
    'user' => [
        'name' => '用户管理',
        'icon' => 'iconyonghuguanli',
        'index' => 'user/index',
        'submenu' => [
            [
                'name' => '用户列表',
                'index' => 'user/index',
            ],
			[
                'name' => '等级管理',
                'index' => 'user.grade/index',
				'uris' => [
					'user.grade/index',
					'user.grade/add',
					'user.grade/edit',
					'user.grade/delete',
				],
            ],
			[
                'name' => '充值记录',
                'index' => 'user.recharge/index',
				'uris' => [
					'user.recharge/index'
				],
            ],
        ]
    ],
	'market' => [
        'name' => '营销管理',
        'icon' => 'iconyingxiao',
        'index' => 'market.activity/index',
        'submenu' => [
			[
                'name' => '优惠活动',
                'index' => 'market.activity/index',
				'uris' => [
					'market.activity/index',
					'market.activity/add',
					'market.activity/edit',
					'market.activity/delete',
				],
            ],
			[
                'name' => '用户充值',
                'active' => false,
                'submenu' => [
                    [
                        'name' => '充值套餐',
                        'index' => 'market.recharge.plan/index',
						'uris' => [
							'market.recharge.plan/index',
							'market.recharge.plan/add',
							'market.recharge.plan/edit',
							'market.recharge.plan/delete',
						],
                    ],
					[
                        'name' => '充值设置',
                        'index' => 'market.recharge/setting',
                    ],
                ]
            ],
		],
    ],
	'statistics' =>[
		'name' => '数据统计',
        'icon' => 'icontongji',
        'index' => 'statistics/opt',
		'urls' => [
			'statistics/opt',
			'statistics/index'
		]
	],
    'wxapp' => [
        'name' => '小程序',
        'icon' => 'iconweixinxiaochengxu',
        'color' => '#36b313',
        'index' => 'wxapp/setting',
        'submenu' => [
            [
                'name' => '小程序设置',
                'index' => 'wxapp/setting',
				'urls' => [
					'wxapp/setting',
					'wxapp.register/index',
					'wxapp.register/pay',
					'wxapp.name/setting',
					'wxapp/sethead',
					'wxapp/servedomain',
					'wxapp/signature',
				]
            ],
			[
				'name' => '发布/升级',
				'index' => 'wxapp.release/index',
					'urls' => [
						'wxapp.release/index',
						'wxapp.release/add',
						'wxapp.release/edit',
						'wxapp.release/delete'
					]
			],
            [
                'name' => '页面管理',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '首页设计',
                        'index' => 'wxapp.page/index'
                    ],
                    [
                        'name' => '页面链接',
                        'index' => 'wxapp.page/links'
                    ],
                ]
            ],
			[
                'name' => '其它设置',
                'active' => false,
                'submenu' => [
					[
						'name' => '应用类目',
						'index' => 'wxapp.category/index',
						'uris' => [
							'wxapp.category/index',
							'wxapp.category/add',
							'wxapp.category/delete',
						],
					],
					[
						'name' => '订阅消息',
						'index' => 'wxapp.tpl/setting',
						'uris' => [
							'wxapp.tpl/setting',
						],
					],
					[
						'name' => '门店类目',
						'index' => 'wxapp.nearby.category/index',
						'uris' => [
							'wxapp.nearby.category/index',
							'wxapp.nearby.category/add',
							'wxapp.nearby.category/delete',
						],
					],
					[
						'name' => '附近展示',
						'index' => 'wxapp.nearby/index',
						'uris' => [
							'wxapp.nearby/index',
							'wxapp.nearby/add',
							'wxapp.nearby/delete',
						],
					],
					[
						'name' => '体验用户',
						'index' => 'wxapp.test/index',
							'urls' => [
								'wxapp.test/index',
								'wxapp.test/add',
								'wxapp.test/delete'
							]
					],
                ]
            ],
            [
                'name' => '帮助中心',
                'index' => 'wxapp.help/index',
                'urls' => [
                    'wxapp.help/index',
                    'wxapp.help/add',
                    'wxapp.help/edit',
                    'wxapp.help/delete'
                ]
            ],
        ],
    ],
    'plugins' => [
        'name' => '应用中心',
        'icon' => 'iconyingyongzhongxin',
        'index' => 'plugins.shop/index',
		'submenu' => [
		    [
		        'name' => '门店管理',
		        'index' => 'plugins.shop/index',
				'urls' => [
				    'plugins.shop/index',
				    'plugins.shop/add',
				    'plugins.shop/edit',
				    'plugins.shop/delete'
				]
		    ],
		    [
		        'name' => '店员管理',
		        'index' => 'plugins.shop.clerk/index',
				'urls' => [
				    'plugins.shop.clerk/index',
				    'plugins.shop.clerk/add',
				    'plugins.shop.clerk/edit',
				    'plugins.shop.clerk/delete'
				]
		    ],
			[
		        'name' => '餐桌管理',
		        'index' => 'plugins.table/index',
				'urls' => [
				    'plugins.table/index',
				    'plugins.table/add',
				    'plugins.table/edit',
				    'plugins.table/delete'
				]
		    ],
			[
		        'name' => '口味选项',
		        'index' => 'plugins.flavor/index',
				'urls' => [
				    'plugins.flavor/index',
				    'plugins.flavor/add',
				    'plugins.flavor/edit',
				    'plugins.flavor/delete'
				]
		    ],
			[
                'name' => '分销中心',
                'active' => false,
                'submenu' => [
					[
                        'name' => '分销设置',
                        'index' => 'plugins.dealer/setting',
						'urls' => [
							'plugins.dealer/setting',
						]
                    ],
					[
                        'name' => '分销海报',
                        'index' => 'plugins.dealer/poster',
						'urls' => [
							'plugins.dealer/poster',
						]
                    ],
                ]
            ],
			[
		        'name' => '打印机管理',
		        'index' => 'plugins.printer/index',
				'urls' => [
				    'plugins.printer/index',
				    'plugins.printer/add',
				    'plugins.printer/edit',
				    'plugins.printer/delete'
				]
		    ],
		]
    ],
    'setting' => [
        'name' => '设置',
        'icon' => 'iconshezhi',
        'index' => 'setting/store',
        'submenu' => [
            [
                'name' => '站点设置',
                'index' => 'setting/store',
            ],
            [
                'name' => '交易设置',
                'index' => 'setting/trade',
            ],
            [
                'name' => '配送设置',
                'index' => 'setting/delivery',
            ],
            [
                'name' => '短信通知',
                'index' => 'setting/sms'
            ],
            [
                'name' => '上传设置',
                'index' => 'setting/storage',
            ],
			[
                'name' => '打印设置',
                'index' => 'setting/printer',
            ],
            [
                'name' => '其他',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '清理缓存',
                        'index' => 'setting.cache/clear'
                    ],
                ]
            ]
        ],
    ],
];
